#include "editprofiledialog.h"
#include "editprofileview.h"
#include <QVBoxLayout>

EditProfileDialog::EditProfileDialog(QWidget* parent)
    : QDialog { parent, Qt::MSWindowsFixedSizeDialogHint }
{
    setWindowTitle(tr("Edit Profile"));
    setMinimumSize(450, 580);
    resize(450, 580);

    QVBoxLayout* vl = new QVBoxLayout(this);
    vl->setContentsMargins(0, 0, 0, 0);

    EditProfileView* view = new EditProfileView(this);
    vl->addWidget(view);
    connect(view, &EditProfileView::closeRequested, this, &EditProfileDialog::reject);
}
